package com.mjh.zhujianju.service.agency;

import java.util.List;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;
import com.mjh.zhujianju.model.agency.WorkDynamicEO;
import com.mjh.zhujianju.vo.agency.WorkDynamicVO;

/**
 * @author liuyang
 * @Description: 动态
 * @date 2018/8/9 22:42
 */
public interface WorkDynamicService  extends BaseService<WorkDynamicEO> {

    /**
     * wx-首页展示工作动态
     * @return
     */
     List<WorkDynamicVO> queryWorkDynamicIndex();

    /**
     *  wx-工作动态列表
     * @param deptId 部门id
     * @return
     */
    List<WorkDynamicVO> queryWorkDynamicList(Long deptId);

    /**
     * 根据公告id查询详细信息
     * @param id
     * @return
     */
    WorkDynamicVO queryWorkDynamicInfo(Long id);

    /**
     * 保存
     * @param vo
     * @throws XTBusinessException
     */
	void saveInfo(WorkDynamicVO vo) throws XTBusinessException;

	
	/**
	 * 更新
	 * @param vo
	 * @throws XTBusinessException
	 */
	void updateInfo(WorkDynamicVO vo)throws XTBusinessException;


	/**
	 * 查询
	 * @param vo
	 * @throws XTBusinessException
	 */
	WorkDynamicVO getInfo(Long id) throws XTBusinessException;


	/**
	 * 查询
	 * @param vo
	 * @throws XTBusinessException
	 */
	PagedResult<WorkDynamicVO> getVOPage(WorkDynamicVO eo);


}
